package com.qiuyang.mapper;

import com.qiuyang.pojo.Blog;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface BlogMapper {
    List<Blog> findBlog();
    void deleteById(Long id);
    void insertBlog(Blog blog);
    List<Blog> findByTitle(String title);
    Blog findBlogById(Long id);
    void updateBlog(Blog blog);

    void insertBlogTags(Map<String,Object> map);


    Long findMaxId();
    void updateBlogTags(Map<String,Object> map);

    void deleteBlogTag(Long blogsId);
    String findAllBlogTags(Long blogsId);

    List<Blog> findAllBlog();


}
